package com.um.jdy.platform.user.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Title 手机号
 * @author cs
 * 日期 2023/5/23
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class MobileDTO {

    @ApiModelProperty(value = "手机号", required = true, example = "17712341234")
    @NotNull
    private String mobile;

    @ApiModelProperty(value = "验证码", required = true, example = "9037")
    @Length(min = 1, max = 6)
    private String code;
}
